﻿namespace DesignModeConsole.创建型.简单工厂模式
{
    /// <summary>
    /// 工厂模式
    /// </summary>
    public class SampleFactoryService : IService
    {
        public void Main()
        {
            //简单工厂模式 方式一
            //var readFile = FileReadFactory.CreateRead("json");

            var readFile2 = FileReadFactory2.CreateRead("json");
            Console.WriteLine(readFile2.Read());
        }
    }
}